package com.tangcco.lockwell.domain.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yanxinping
 * @version 1.0
 * @description: TODO
 * @date 2024/12/18 16:00
 */
public enum CheckTypeEnum {
    SINGLE_CHECK(1,"单选"),
    MULTI_CHECK(2,"多选"),
    TICH_TEXT(3,"填空");

    private int code;
    private String desc;

    CheckTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
        }

    public int getCode() {
        return code;
    }
    public String getDesc() {
        return desc;
    }

    private static final Map<Integer, CheckTypeEnum> keyMap = new HashMap<>();

    static {
        for (CheckTypeEnum item : CheckTypeEnum.values()) {
            keyMap.put(item.getCode(), item);
        }
    }



}
